<?php

namespace App\Enum;


class CarEnum
{

    /**
     * 车辆类型
     */
    const TYPE_ORDINARY = '1'; // 普通
    const TYPE_LOW = '2'; // 低配
    const TYPE_LUXURY = '3'; // 豪华
    const TYPE_BUSINESS = '4'; // 商务

    /**
     * 限行
     */
    const MONDAY = '1'; // 星期一
    const TUESDAY = '2'; // 星期二
    const WEDNESDAY = '3'; // 星期三
    const THURSDAY = '4'; // 星期四
    const FRIDAY = '5'; // 星期五
    const UNIMPEDED = '0'; // 不限行


    /**
     * 所属权
     */
    const PERSON = '1'; // 个人
    const COMPANY = '2'; // 公司


    /**
     * 状态
     */
    const NORMAL = 1; // 正常
    const SCRAP = 2; // 报废
    const NOT_PERFECT = 3; // 未完善
    const FREEZE = 4; // 冻结


    public static $typeMessage = [
        self::TYPE_ORDINARY => '普通',
        self::TYPE_LOW => '低配',
        self::TYPE_LUXURY => '豪华',
        self::TYPE_BUSINESS => '商务',
    ];

    public static $actionMessage = [
        self::MONDAY => '星期一',
        self::TUESDAY => '星期二',
        self::WEDNESDAY => '星期三',
        self::THURSDAY => '星期四',
        self::FRIDAY => '星期五',
        self::UNIMPEDED => '不限行'
    ];


    public static $statusMessage = [
        self::NORMAL => '正常',
        self::SCRAP => '报废',
        self::NOT_PERFECT => '未完善',
        self::FREEZE => '冻结',
    ];

    public static function typeMessage($code)
    {
        return self::$typeMessage[$code];
    }


    public static function actionMessage($code)
    {
        return self::$actionMessage[$code];
    }


    public static function statusMessage($code)
    {
        return self::$statusMessage[$code];
    }
}
